package com.etc.entity;

import java.io.Serializable;
import java.util.Date;

public class Comment implements Serializable {

    private static final long serialVersionUID = -8569428104823460416L;
    private Integer comId;

    private String comContent;

    private String conDate;

    private Integer userId;

    private Integer traId;

    private Integer dyId;
    
    private User user;

    private Travels travels;
    

    public Integer getComId() {
        return comId;
    }

    public void setComId(Integer comId) {
        this.comId = comId;
    }

    public String getComContent() {
        return comContent;
    }

    public void setComContent(String comContent) {
        this.comContent = comContent;
    }

    public String getConDate() {
        return conDate;
    }

    public void setConDate(String conDate) {
        this.conDate = conDate;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getTraId() {
        return traId;
    }

    public void setTraId(Integer traId) {
        this.traId = traId;
    }

    public Integer getDyId() {
        return dyId;
    }

    public void setDyId(Integer dyId) {
        this.dyId = dyId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Travels getTravels() {
        return travels;
    }

    public void setTravels(Travels travels) {
        this.travels = travels;
    }


    public Comment(String comContent, String conDate, Integer userId, Integer traId) {
        super();
        this.comContent = comContent;
        this.conDate = conDate;
        this.userId = userId;
        this.traId = traId;
    }

    public Comment() {
        super();
    }

    public Comment(String comContent, Integer userId, Integer dyId, String conDate) {
        super();
        this.comContent = comContent;
        this.conDate = conDate;
        this.userId = userId;
        this.dyId = dyId;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "comId=" + comId +
                ", comContent='" + comContent + '\'' +
                ", conDate=" + conDate +
                ", userId=" + userId +
                ", traId=" + traId +
                ", dyId=" + dyId +
                ", user=" + user +
                ", travels=" + travels+
                '}';
    }
}